package com.atguigu05.objectstream;

import org.w3c.dom.css.CSSStyleRule;

import java.io.Serial;
import java.io.Serializable;

/**
 * ClassName: Person
 * Package: com.atguigu05.objectstream
 * Description:
 *
 * @Author BuTang
 * @Create 2023/6/15 18:30
 * @Version 1.0
 */
public class Person implements Serializable {
    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    static final long serialVersionUID = 42234L;
    private String name;
    private int age;
}
